/*!
 * \file manager.h
 * \brief Header of classes CMeshManager, CTextureManager, CSoundManager and CGlobalManager
 * \author Benjamin Toueg
 * \version 13.08.09
 */

#ifndef SOUNDMANAGER_H
#define SOUNDMANAGER_H

#include <SFML/Audio.hpp>

#include <string>
#include <map>

class CSoundManager
{
public:
    CSoundManager();
    ~CSoundManager();
    void loadAllBuffer();
    void pauseMusic();
    void play(const std::string&);
    void play(int n);
    void playMusic();
    void stopMusic();

private:
    std::map<std::string,sf::SoundBuffer> m_buffer_map;
    sf::Sound m_sound1;
    sf::Music m_music;
    // les melodies
    std::vector<std::string> m_auclairdelalune;
};

#endif //SOUNDMANAGER_H
